import { createSSRApp } from "vue";
import App from "./App.vue";
// 引入uview
import uviewPlus from 'uview-plus'

// 导入样式和字体
import "@/static/styles/common.scss";
import "@/static/font/fonts.css"

// 导入 pinia 实例
import pinia from './stores'

// 引入全局分享
import share from './utils/share'

export function createApp() {
  const app = createSSRApp(App);
  // // 使用 pinia
  app.use(pinia)
  // 使用uview
  app.use(uviewPlus)
  // 注入全局分享
  app.mixin(share)
  return {
    app,
  };
}
